package com.dsx.test.shiro;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.shiro.authc.AuthenticationToken;
import org.springframework.stereotype.Component;

/**
 * @author : tianwenqing
 * @version : 1.0
 * @date : 2020-11-16 18:04
 * @description :
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class CustomizedToken implements AuthenticationToken {

    private String userId ;

    private String token ;

    @Override
    public Object getPrincipal() {
        return userId;
    }

    @Override
    public Object getCredentials() {
        return token;
    }



}
